package com.ruibang.glass.equipment.entity.device;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.teaming.cloud.framework2.common.pojo.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDate;

@Data
@ApiModel(value = "设备电梯信息")
@TableName(value = "g_equipment_elevator")
public class Elevator extends BaseEntity implements Serializable {
    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;
    @ApiModelProperty(value = "使用单位")
    private String usingUnit;
    @ApiModelProperty(value = "名称")
    private String name;
    @ApiModelProperty(value = "型号")
    private String model;
    @ApiModelProperty(value = "安装地点")
    private String installationLocation;
    @ApiModelProperty(value = "生产编号")
    private String productionNumber;
    @ApiModelProperty(value = "制造单位")
    private String manufacturingUnit;
    @ApiModelProperty(value = "维保单位")
    private String maintenanceUnit;
    @ApiModelProperty(value = "制作日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @JSONField(format = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate manufactureDate;
    @ApiModelProperty(value = "载货量")
    private Float loadCapacity;
    @ApiModelProperty(value = "运行速度")
    private Float runningSpeed;
    @ApiModelProperty(value = "控制方式")
    private String controlMode;
    @ApiModelProperty(value = "层站数")
    private String floorNumber;
    @ApiModelProperty(value = "注册代码")
    private String registrationCode;
    @ApiModelProperty(value = "检验报告编号")
    private String inspectionReportNumber;
    @ApiModelProperty(value = "检验日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @JSONField(format = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate inspectionDate;
    @ApiModelProperty(value = "下次检验时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @JSONField(format = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate nextInspectionTime;
    @ApiModelProperty(value = "状态 0:运行，1:停机，字典类型：equipment_status")
    private String status;
    @ApiModelProperty(value = "是否删除(1：是 0：否)")
    @TableLogic
    private String isDelete;

}
